<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
		<html>
		<head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
		<title>Rational</title>
		<META HTTP-EQUIV="EXPIRES" CONTENT=0>
		<link rel="stylesheet" href="../../../../docs.css">
		</head>
		<body>
		
<br>
<h1>Io Reference</h1>
<br><br><br>
<br><br><br>
<a class='column' href='../../index.html'>Math</a>
&nbsp;&nbsp;<font color=#ccc>/</font>&nbsp;&nbsp;
<a class='column' href='../index.html'>Rational</a>
&nbsp;&nbsp;<font color=#ccc>/</font>&nbsp;&nbsp;
<b>Rational</b>
<br><br><br>
<br><br><br>
<table border=0 cellspacing=0 style="margin-left:8em; width:40em; line-height:1.2em;">
<tr><td colspan=3>&nbsp;</td></tr>
<tr><td colspan=3>&nbsp;</td></tr>
<tr><td colspan=3>&nbsp;</td></tr>
<tr>
<td align=right>
</td>
<td></td>
<td>
<hr align=left color=#ddd height=1>
<br><br>
<a name="Rational-!="></a><b>
!=(other)
</b>
<p>
<div class=slotDescription>
Compares two numbers against one another. Returns true if they are equal (represent the same number), false otherwise.
</div>
<a name="Rational-%"></a><b>
%(aNum)
</b>
<p>
<div class=slotDescription>
Returns the receiver modulus aNum
</div>
<a name="Rational-*"></a><b>
*(aNum)
</b>
<p>
<div class=slotDescription>
Returns the value of the receiver multiplied by aNum.
</div>
<a name="Rational-+"></a><b>
+(aNum)
</b>
<p>
<div class=slotDescription>
Returns the value of the receiver added to aNum.
</div>
<a name="Rational--"></a><b>
-(aNum)
</b>
<p>
<div class=slotDescription>
Returns the value of the receiver subtracted from aNum.
</div>
<a name="Rational-/"></a><b>
/(aNum)
</b>
<p>
<div class=slotDescription>
Returns the value of the receiver divided by aNum.
</div>
<a name="Rational-=="></a><b>
==(other)
</b>
<p>
<div class=slotDescription>
Compares two numbers against one another. Returns true if they are equal (represent the same number), false otherwise.
</div>
<a name="Rational-abs"></a><b>
abs
</b>
<p>
<div class=slotDescription>
Returns a Rational number with the absolute value of the receiver.
</div>
<a name="Rational-asNumber"></a><b>
asNumber
</b>
<p>
<div class=slotDescription>
Converts the Rational number to a floating point number.
</div>
<a name="Rational-asRational"></a><b>
asRational
</b>
<p>
<div class=slotDescription>
Converts the number to a Rational number. CAVEAT: Numbers in Io are floating point entities, which means since they are imprecise, this conversion may yield values not expected.")
</div>
<a name="Rational-asString"></a><b>
asString
</b>
<p>
<div class=slotDescription>
Returns a text string representing the Rational number.
</div>
<a name="Rational-compare"></a><b>
compare(other)
</b>
<p>
<div class=slotDescription>
Compares two numbers against one another. Returns a positive, zero or negative value based on whether the receiver is larger, equal or less than the argument.
</div>
<a name="Rational-denominator"></a><b>
denominator
</b>
<p>
<div class=slotDescription>
Returns the denominator.
</div>
<a name="Rational-divmod"></a><b>
divmod(aNum)
</b>
<p>
<div class=slotDescription>
Returns a list containing the integer value and the receiver modulus aNum.
</div>
<a name="Rational-gcd"></a><b>
gcd(aNum)
</b>
<p>
<div class=slotDescription>
Calculates the greatest common denominator between the receiver and the argument.
</div>
<a name="Rational-negate"></a><b>
negate
</b>
<p>
<div class=slotDescription>
Negates the Rational number.
</div>
<a name="Rational-numerator"></a><b>
numerator
</b>
<p>
<div class=slotDescription>
Returns the numerator.
</div>
<a name="Rational-pow"></a><b>
pow(aNum)
</b>
<p>
<div class=slotDescription>
Returns the value of the receiver to the power of aNum.
</div>
<a name="Rational-reduce"></a><b>
reduce
</b>
<p>
<div class=slotDescription>
Reduces the numerator and denominator to their lowest terms.
</div>
<a name="Rational-serialized"></a><b>
serialized
</b>
<p>
<div class=slotDescription>
Returns a bit of code which can be used to serialize the Rational number.
</div>
<a name="Rational-setDenominator"></a><b>
setDenominator(aNumber)
</b>
<p>
<div class=slotDescription>
Sets the denominator. Returns self.
</div>
<a name="Rational-setNumerator"></a><b>
setNumerator(aNumber)
</b>
<p>
<div class=slotDescription>
Sets the numerator. Returns self.
</div>
<a name="Rational-with"></a><b>
with(aNumerator, aDenominator)
</b>
<p>
<div class=slotDescription>
Convenience constructor. Returns a new Rational number whose numerator and denominator are represented by the arguments aNumerator and aDenominator respectively.")
</div>
</td>
</tr>
</table>
<br><br><br><br><br>
</body>
</html>
